package ue.util;

import java.util.ArrayList;
import java.util.List;

public class Datagrid<T> {

	  private long total; 
	  private List<T> rows = new ArrayList<T>(); 
	  public Datagrid() { 
	    super(); 
	  } 
	  public Datagrid(long total, List rows) { 
	    super(); 
	    this.total = total; 
	    this.rows.addAll(rows); 
	  } 
	  public long getTotal() { 
	    return total; 
	  } 
	  public void setTotal(long total) { 
	    this.total = total; 
	  } 
	  public List getRows() { 
	    return rows; 
	  } 
	  public void setRows(List rows) { 
	    this.rows = rows; 
	  }
	  
	  @Override
	public String toString() {
			return "Datagrid [total=" + total + ", rows=" + rows + "]";
	} 
	  
	  
}
